package com.ruding.disruptor.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.ruding.disruptor.config.ReportStatus;

/**
 * 文件信息
 * @author 520475
 *
 */
public class EvidenceRecord {

    private String filePath;

    private Long lastModified;

    @JSONField(serialize = false)
    private Integer status;

    @JSONField(serialize = false)
    private Long reportTime;


    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Long getLastModified() {
        return lastModified;
    }

    public void setLastModified(Long lastModified) {
        this.lastModified = lastModified;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getReportTime() {
        return reportTime;
    }

    public void setReportTime(Long reportTime) {
        this.reportTime = reportTime;
    }

    @JSONField(serialize = false)
    public boolean isReported() {
        return this.status == ReportStatus.REPORTED.code();
    }
}
